package com.itheima.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CheckGroup_ItemMapper {
    @Delete("delete from health_chuanzhi.t_checkgroup_checkitem where checkitem_id=#{id}")
    void deleteByItemId (Long id);
    @Delete("delete from health_chuanzhi.t_checkgroup_checkitem where checkgroup_id = #{id}")
    void deleteByCheckGroupId(Integer id);

    void insertBatch(Integer id, List<Integer> checkitemIds);
    /*@Insert("insert into health_chuanzhi.t_checkgroup_checkitem (checkgroup_id, checkitem_id) "
    +"values (#{group_id},#{item_id})")
    void addItem(@Param("group_id") Integer group_id, @Param("item_id") Integer item_id);*/

}
